package cn.lkp.mall.product.feign;

import cn.lkp.common.to.SkuReductionTo;
import cn.lkp.common.to.SpuBoundTo;
import cn.lkp.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("mall-coupon")
public interface CouponFeignService {
    //@RequestBody将to对象转化为json，放在请求体中发送出去
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBound(@RequestBody SpuBoundTo spuBoundTo);
    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
